<!DOCTYPE html>
<html class="pixel-ratio-1">

	<head>
		<meta charset="utf-8" />
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
		<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate" />
		<meta name="viewport" content="width=375, user-scalabe=no">
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<title>质检单-列表</title>
		<link rel="stylesheet" type="text/css" href="../../../../../public/vendor/weui/weui.min.css" />
		<link rel="stylesheet" type="text/css" href="../../../../../public/css/common.css" />
		<link rel="stylesheet" type="text/css" href="../../../../../public/css/iconfont/iconfont.css" />
		<link rel="stylesheet" href="../../../../../public/vendor/weui/jquery-weui.css">
		<!-- Site CSS -->
		<link rel="stylesheet" href="../../../../../public/themes/base/css/site.css" id="admui-siteStyle">
		<!-- Select2 Plugin CSS -->
		<link rel="stylesheet" type="text/css" href="../../../../../public/vendor/select2/select2.min.css" />
		<link rel="stylesheet"
			href="../../../../../public/css/features/feed/qualityinspection/qualityinspectionlist.css">
		<script id="salesplanmain-template" type="text/x-template">
			{{~ it :value:index}}
				<div class="page__bd page__bd_spacing recruitment_jobs looksale">
					<div class="weui-flex marbot">
						<div>
							<div class="placeholder" style="font-weight:800">{{=index+1}}：{{=value.bizFormObj.billNo}}
							</div>
						</div>
						<div class="salesplanstate">
							<div class="placeholder" v-html="item.billStatusCh">{{=value.billStatusCh}}</div>
						</div>
					</div>
					<div class="weui-flex marbot" style="font-size: 14px;">
						<div class="weui-flex__item">
							<div class="placeholder" style="color:#1baeea">公司：{{=value.company.name}}</div>
						</div>
					</div>
					<div class="weui-flex marbot" style="font-size: 14px;">
						<div class="weui-flex__item">
							<div class="placeholder" style="color:#4d4d4d">质检类型：{{=value.typeName}}</div>
						</div>
					</div>
					<div class="weui-flex marbot" style="font-size: 14px;">
						<div class="weui-flex__item">
							<div class="placeholder" style="color:#4d4d4d">质检结果：{{=value.qualityResultsName}}</div>
						</div>
					</div>
					<div class="weui-flex marbot" style="font-size: 14px;">
						<div class="weui-flex__item">
							<div class="placeholder" style="color:#4d4d4d">物料：{{=value.material.name}}</div>
						</div>
					</div>
					<div class="weui-flex marbot" style="font-size: 14px;">
						<div class="weui-flex__item">
							<div class="placeholder" style="color:#4d4d4d">运单号：{{=value.waybillNo}}</div>
						</div>
					</div>
					<div class="weui-flex marbot" style="font-size: 14px;">
						<div class="weui-flex__item">
							<div class="placeholder" style="color:#4d4d4d">车牌号：{{=value.vehicleNo}}</div>
						</div>
					</div>
					<div class="weui-flex marbot" style="font-size: 14px;">
						<div class="weui-flex__item">
							<div class="placeholder" style="color:#4d4d4d">货数量：{{=value.quantity}}</div>
						</div>
					</div>
					<div class="weui-flex marbot" style="font-size: 14px;">
						<div class="weui-flex__item">
							<div class="placeholder" style="color:#4d4d4d">
								业务日期：{{=moment(value.bizFormObj.bizDate).format('YYYY-MM-DD')}}</div>
						</div>
					</div>
					<!-- 注释掉原有的三个点菜单 -->
					<!-- <div class="weui-flex marbot" style="font-size: 14px;">
						<div class="weui-flex__item">
						</div>
						<div class="salesplanstate saleElp">
							<div class="placeholder ellipsis">
								<svg t="1663838073483" class="icon" viewBox="0 0 1024 1024" version="1.1"
									xmlns="http://www.w3.org/2000/svg" p-id="2539" width="30" height="20">
									<path
										d="M256 512a64 64 0 1 1-128 0 64 64 0 0 1 128 0zM576 512a64 64 0 1 1-128 0 64 64 0 0 1 128 0zM896 512a64 64 0 1 1-128 0 64 64 0 0 1 128 0z"
										p-id="2540"></path>
								</svg>
								<input type="hidden" id="print-code-id" value="" />
							</div>
						</div>
						<div class="detail" style="display: none;">
							<ul class="saledetail">
								<li class="edit operation subsale" data-id='{{=value.id}}'>编辑</li>
								<li class="submit subsale">提交</li>
								<li class="unsubmit savesale">反提交</li>
								<li class="audit savesale">审核</li>
								<li class="antiaudit savesale subsale">反审核</li>
								<li class="viewdetails operation">查看详情</li>
								<li class="signature operation">签署</li>
								<li class="delete subsale">删除</li>
							</ul>
						</div>
					</div> -->

					<!-- 分割线 -->
					<div style="border-top: 1px solid #e5e5e5; margin: 10px 0;"></div>

					<!-- 新增：直接显示操作按钮（使用条件渲染） -->
					<div class="weui-flex action-buttons"
						style="margin-top: 10px; padding: 0 15px; justify-content: flex-end; gap: 8px;">
						{{? value.bizFormObj.billStatus === 1}}
						<!-- 已保存状态：显示删除、提交、编辑 -->
						<button class="weui-btn weui-btn_mini weui-btn_warn delete subsale"
							data-id='{{=value.id}}'>删除</button>
						<button class="weui-btn weui-btn_mini weui-btn_primary submit subsale"
							data-id='{{=value.id}}'>提交</button>
						<button class="weui-btn weui-btn_mini weui-btn_primary edit operation subsale"
							data-id='{{=value.id}}'>编辑</button>
						{{?? value.bizFormObj.billStatus === 2}}
						<!-- 已提交状态：显示反提交、审核 -->
						<button class="weui-btn weui-btn_mini weui-btn_warn unsubmit savesale"
							data-id='{{=value.id}}'>反提交</button>
						<button class="weui-btn weui-btn_mini weui-btn_primary audit savesale"
							data-id='{{=value.id}}'>审核</button>
						{{?? value.bizFormObj.billStatus === 3}}
						<!-- 已审核状态：显示反审核 -->
						<button class="weui-btn weui-btn_mini weui-btn_warn antiaudit savesale subsale"
							data-id='{{=value.id}}'>反审核</button>
						{{?? value.bizFormObj.billStatus === 99}}
						<!-- 已删除状态：不显示任何按钮 -->
						{{??}}
						<!-- 其他状态：不显示按钮 -->
						{{?}}
						<input type="hidden" id="print-code-id" value="" />
					</div>
				</div>
				{{~}}
					<div class="weui-loadmore weui-loadmore_line" style="margin-top: 100px;">
						<span class="weui-loadmore__tips" style="background: #f1f1f1;">已经到底了</span>
					</div>
		</script>

	</head>

	<body>
		<div id="pull-down" class="pull-down">
			<div class="pull-down-content">松开刷新</div>
		</div>
		<div id="salesplanmain">
			<div id="salesplanmainId" class="weui-tab ">
				<div class="weui-search-bar" id="search_bar">
					<form class="weui-search-bar__form" style="height: 35px;">
						<div class="weui-search-bar__box input-search">
							<i class="weui-icon-search"></i>
							<input type="search" class="weui-search-bar__input ios-input-adjustment" id="search-index"
								placeholder="请输入查询信息..." autocomplete="off" />
							<a href="javascript:" class="weui-icon-clear" id="search_clear"></a>
						</div>
						<label for="search_input" class="weui-search-bar__label" id="search_text">
							<i class="weui-icon-search"></i>
							<span>搜索</span>
						</label>
					</form>
					<a href="javascript:" class="weui-search-bar__cancel-btn" id="search_cancel">取消</a>
				</div>
				<div id="spleplan-navbar" class="weui-navbar spleplan_nav">
					<a class="weui-navbar__item weui-bar__item--on navbar-click" href="javascript:;" id="all-list">
						全部
					</a>
					<a class="weui-navbar__item  navbar-click" href="javascript:;" id="save-list">
						已保存
					</a><a class="weui-navbar__item navbar-click" href="javascript:;" id="submit-list">
						已提交
					</a>
					<a class="weui-navbar__item navbar-click" href="javascript:;" id="audit-list">
						已审核
					</a>
				</div>
				<div id="salesplantel"></div>

				<div class="addsaleorders" id="addsaleorders">
					<div class="addsales">
						<i class="icon iconfont icon-add-line icon-font-size-24 icon-click"
							style="font-size: 50px;color: aliceblue;" aria-hidden="true"></i>
					</div>
				</div>
				<div class="returnHome" id="returnMain">
					<i class="icon iconfont icon-pages"></i>
				</div>
			</div>
		</div>


		<script type="text/javascript" src="../../../../../public/vendor/jquery/jquery.min.js"></script>
		<!-- Select2 Plugin JS (after jQuery) -->
		<script type="text/javascript" src="../../../../../public/vendor/select2/select2.min.js"></script>
		<script type="text/javascript" src="../../../../../public/vendor/vue/vue.min.js"></script>
		<script type="text/javascript" src="../../../../../public/vendor/moment/moment.min.js"></script>
		<script type="text/javascript" src="../../../../../public/vendor/weui/weui.js"></script>
		<script type="text/javascript" src="../../../../../public/vendor/weui/jquery-weui.min.js"></script>
		<script type="text/javascript" src="../../../../../public/js/common/iosadaptation.js"></script>
		<script type="text/javascript" src="../../../../../public/js/config/utils.js"></script>
		<script type="text/javascript" src="../../../../../public/vendor/swiper/swiper.js"></script>

		<!-- 签署功能相关库 -->
		<script type="text/javascript" src="../../../../../public/vendor/print/jspdf.min.js"></script>
		<script type="text/javascript" src="../../../../../public/vendor/print/html2canvas.js"></script>
		<script type="text/javascript" src="../../../../../public/vendor/doT/doT.min.js"></script>
		<script type="text/javascript" src="../../../../../public/js/common/print-pdf/index.js"></script>

		<script type="module" src="../../../../../public/js/features/feed/qualityinspection/qualityinspectionlist.js">
		</script>
	</body>

</html>